<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class Helpers | sweetphp</title>

	<script type="text/javascript" src="resources/combined.js?2802521858"></script>
	<script type="text/javascript" src="elementlist.js?3776638906"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="package-SweetPHP.html">SweetPHP<span></span></a>
						<ul>
				<li class="active"><a href="package-SweetPHP.System.html">System<span></span></a>
						<ul>
				<li><a href="package-SweetPHP.System.Core.html">Core</a>
						</li>
				<li><a href="package-SweetPHP.System.Test.html">Test</a>
						</li>
				<li class="active"><a href="package-SweetPHP.System.Utility.html">Utility</a>
						</li>
							</ul></li></ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-DataParam.html">DataParam</a></li>
				<li><a href="class-DateNow.html">DateNow</a></li>
				<li><a href="class-Dir.html">Dir</a></li>
				<li><a href="class-Float.html">Float</a></li>
				<li><a href="class-Form.html">Form</a></li>
				<li class="active"><a href="class-Helpers.html">Helpers</a></li>
				<li><a href="class-InputText.html">InputText</a></li>
				<li><a href="class-Integer.html">Integer</a></li>
				<li><a href="class-Logger.html">Logger</a></li>
				<li><a href="class-Mask.html">Mask</a></li>
				<li><a href="class-SEO.html">SEO</a></li>
				<li><a href="class-Session.html">Session</a></li>
				<li><a href="class-String.html">String</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-SweetPHP.System.Utility.html" title="Summary of SweetPHP\System\Utility"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Helpers</h1>


	<div class="description">
	SweetPHP<br />

<p><b>Helpers / baseUrl </b></p>

<p>Caminho absoluto para específicação da URL para links, arquivos,
imagens.</p>
<br />

	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-SweetPHP.html">SweetPHP</a>\<a href="package-SweetPHP.System.html">System</a>\<a href="package-SweetPHP.System.Utility.html">Utility</a><br />

				<b>Copyright:</b>
				Copyright (c) 2013 - 2014, Ilines.<br />
				<b>Author:</b>
				sweetphp<br />
				<b>Example:</b>
				baseUrl('style.css')<br />
				<b>Param:</b>
				<code>string</code><br>$uri - Caminho / Arquivo<br />
				<b>Return:</b>
				<code>string</code><br>echo 'www.mypage.com/style.css'<br />
		<b>Located at</b> <a href="source-class-Helpers.html#3-71" title="Go to source code">libs/system/utility/Helpers.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="baseUrl" id="_baseUrl">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_baseUrl">#</a>
		<code><a href="source-class-Helpers.html#19-21" title="Go to source code">baseUrl</a>( <span>mixed <var>$uri</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="linkUrl" id="_linkUrl">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_linkUrl">#</a>
		<code><a href="source-class-Helpers.html#23-30" title="Go to source code">linkUrl</a>( <span>mixed <var>$uri</var> = <span class="php-quote">''</span></span>, <span>mixed <var>$settings</var> = <span class="php-keyword1">array</span>()</span> )</code>

		<div class="description short">
			
<p>URL Link</p>

		</div>

		<div class="description detailed hidden">
			
<p>URL Link</p>








		</div>
		</div></td>
	</tr>
	<tr data-order="redirect" id="_redirect">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_redirect">#</a>
		<code><a href="source-class-Helpers.html#32-52" title="Go to source code">redirect</a>( <span>string <var>$url</var> = <span class="php-quote">&quot;&quot;</span></span>, <span>boolean <var>$isAjax</var> = <span class="php-keyword1">false</span></span> )</code>

		<div class="description short">
			SweetPHP<br />

<p><b>Helpers / redirect </b></p>

<p>Redireciona a página para o local especificado.</p>

<p><br />
</p>

<p>Se a requisição for ajax $isAjax = true.</p>

<p></p>

		</div>

		<div class="description detailed hidden">
			SweetPHP<br />

<p><b>Helpers / redirect </b></p>

<p>Redireciona a página para o local especificado.</p>

<p><br />
</p>

<p>Se a requisição for ajax $isAjax = true.</p>

<p></p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$url</var></dt>
					<dd><code>string</code><br>$url - URL para redirecionamento</dd>
					<dt><var>$isAjax</var></dt>
					<dd><code>boolean</code><br>$isAjax - Se redirecionamento via é ajax</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>


				<h4>Author</h4>
				<div class="list">
						sweetphp<br />
				</div>
				<h4>Example</h4>
				<div class="list">
						redirect('home') vai redirecionar para home (header("Location: <a
href="http://www.meypage.com/home">www.meypage.com/home</a>");)<br />
						redirect('home', true) vai redirecionar para home quando a requisição for ajax
(window.location = 'www.meypage.com/home')<br />
				</div>


		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		sweetphp API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
